
% Code currently set for version using sugarcane ethanol as benchmark
% price. For baseline results change the code according to comments below.

EstimatesResults = 'Results/ethanol.mat'; % Change to full.mat for baseline results.

for b=1:80
    
    BootResults  = ['Bootstrap/ethanol_b', num2str(b), '.mat']; % Change to full_b for baseline results.
    
    SaveCFto = ['Bootstrap/CF/CF_ethanol_b', num2str(b), '.mat']; % Change to CF_full_b for baseline results.
    
    ProgressBar(b,80)
    
    if exist(BootResults) ~= 2; continue; end % if no boot result file, skip
    
    if exist(SaveCFto) == 2; continue; end % if already ran CF for this boot rep, skip

    CFboot_p05;
    
end